package com.ht.common.core.exception;

/**
 * 转场单证异常处理
 *
 * @Author：hdengxian
 * @Date：2023/12/19 11:21
 */
public class TsBillHandlerException extends RuntimeException {

    /**状态编码 BillAuditStatusEnum 中获取*/
    private String code;
    /**异常回执消息 如 "场所未备案"*/
    private String msg;
    /**平台单证编号*/
    private String platSeqNo;
    /**rcptType 报文类型 EntDeclMsgRConstant中获取*/
    private String rcptType;

    private TsBillHandlerException() {
    }

    /**
     * 异常
     *
     * @param code      状态编码
     * @param msg       异常回执消息
     * @param platSeqNo 平台单证编号
     * @param rcptType  报文类型
     */
    public TsBillHandlerException(String platSeqNo, String rcptType, String code, String msg) {
        this.code = code;
        this.msg = msg;
        this.platSeqNo = platSeqNo;
        this.rcptType = rcptType;
    }

    public TsBillHandlerException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getPlatSeqNo() {
        return platSeqNo;
    }

    public void setPlatSeqNo(String platSeqNo) {
        this.platSeqNo = platSeqNo;
    }

    public String getRcptType() {
        return rcptType;
    }

    public void setRcptType(String rcptType) {
        this.rcptType = rcptType;
    }
}
